Skip to content

Conversation

@laurentlb
Copy link
Contributor

@laurentlb laurentlb commented Oct 14, 2025

Type annotations are already supported in function declarations (since #900). Supporting it in assignments is something users expect too (already supported in Starlark-Rust).

e.g.
s: str = "hello"

Fixes #1381

@tetromino
Copy link

tetromino commented Oct 28, 2025

FYI, @brandjon is literally in the middle of merging support for identifier : T = value and identifier : T statement syntax in Bazel's Starlark parser.

Edit: and it was merged into Bazel as bazelbuild/bazel@5c8655c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support inline type annotations

2 participants